package com.panshi.vo.qa;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/*
*分页
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "分页对象")
public class Pages<T> implements Serializable {
    //分页大小
    @ApiModelProperty(value = "分页大小")
    private int pageSize;
    //起始页
    @ApiModelProperty(value = "起始页")
    private int startPage;
    //数据总条数
    @ApiModelProperty(value = "数据总条数")
    private int sum;

    //分页数据
    @ApiModelProperty(value = "分页数据")
    private List<T> list;

    //所属用户id
    @ApiModelProperty(value = "所属用户id (支持:问题,问题审核,回答,回答审核,评论)")
    private int userId;
    //所属问题id
    @ApiModelProperty(value = "所属问题id (支持:回答,回答审核)")
    private int questionId;

    //节点id
    @ApiModelProperty(value = "节点id (支持:评论)")
    private int textId;
    //上级id
    @ApiModelProperty(value = "文章或回答或评论id(父级id) (支持:评论)")
    private int parentId;

    //类型
    @ApiModelProperty(value = "类型 (支持:问题,评论)")
    private int type;
    //状态
    @ApiModelProperty(value = "状态 (支持:问题,问题审核,回答,回答审核,评论)")
    private int state;

    //已答或未答
    @ApiModelProperty(value = "已答或未答(0:全部,1:已答,2:未答) (支持:问题)")
    private int alreadyAnsweredOrUnanswered;//(0:全部,1:已答,2:未答)
    //排序
    @ApiModelProperty(value = "排序(0:时间,1:阅读量) (支持:问题)")
    private int order;//(0:时间,1:阅读量)

}
